//
//  ChoiceClassCell.m
//  CoachsBook
//
//  Created by MaBookPro on 2022/8/29.
//

#import "ChoiceClassCell.h"

@implementation ChoiceClassCell


-(id)initWithStyle:(UITableViewCellStyle)style reuseIdentifier:(NSString *)reuseIdentifier
{
    self = [super initWithStyle:style reuseIdentifier:reuseIdentifier];
    if (self) {
        
        [self creatcelllist];
    }
    return self;
}

-(void)creatcelllist{
 
    UIView *backV = [[UIView alloc]initWithFrame:CGRectMake(15, 0, APPwidth-30, 75)];
    backV.backgroundColor = rgba(245, 245, 250, 1);
    [self.contentView addSubview:backV];
    
    
    UIImageView *circleimgv = [[UIImageView alloc]initWithFrame:CGRectMake(15, 15, 15, 15)];
    circleimgv.backgroundColor = rgba(22, 120, 255, 0.3);
    circleimgv.image = [UIImage imageNamed:@""];
    circleimgv.userInteractionEnabled = YES;
    [backV addSubview:circleimgv];
    
    UILabel *timeLab = [[UILabel alloc]initWithFrame:CGRectMake(circleimgv.frame.size.width+circleimgv.frame.origin.x+10,  15, backV.width/2-100, 20)];
    timeLab.text = @"07:00-08:00";
    timeLab.textColor = rgba(51, 51, 51, 1);
    timeLab.textAlignment = 0;
    timeLab.font = [UIFont boldSystemFontOfSize:16];
    [backV addSubview:timeLab];
    
    UILabel *typeLab = [[UILabel alloc]initWithFrame:CGRectMake(circleimgv.frame.size.width+circleimgv.frame.origin.x+10,  timeLab.frame.size.height + timeLab.frame.origin.y+15, backV.width/2-100, 20)];
    typeLab.text = @"科三/科二";
    typeLab.textColor = rgba(102, 102, 102, 1);
    typeLab.textAlignment = 0;
    typeLab.font = [UIFont systemFontOfSize:14];
    [backV addSubview:typeLab];
    
    UIButton *bmBtn = [[UIButton alloc]initWithFrame:CGRectMake(backV.width-15-APPwidth/2, 20, 110, 35)];
    [bmBtn setTitle:@"班学员约课" forState:0];
    bmBtn.contentHorizontalAlignment = 0;
    [bmBtn setTitleColor:rgba(22, 120, 255, 1) forState:0];
    bmBtn.titleLabel.font = [UIFont systemFontOfSize:14];
    bmBtn.layer.cornerRadius = 35/2;
    bmBtn.layer.borderColor = rgba(22, 120, 255, 1).CGColor;
    bmBtn.layer.borderWidth = 1;
    [backV addSubview:bmBtn];
    
}






- (void)awakeFromNib {
    [super awakeFromNib];
    // Initialization code
}

- (void)setSelected:(BOOL)selected animated:(BOOL)animated {
    [super setSelected:selected animated:animated];

    // Configure the view for the selected state
}

@end
